package CreationModel.FactoryMode.FactoryMethodModel;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-11-22 18:25:00
 */
public interface IFactory {
    Operation createOperation();
}

class AddFactory implements IFactory{
    @Override
    public Operation createOperation() {
        return new AddOperation();
    }
}
class SubFactory implements IFactory{
    @Override
    public Operation createOperation() {
        return new SubOperation();
    }
}
